package com.qcby.form;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

@Data
public class OrderCreateForm {
    @NotNull(message = "商品ID不能为空")
    private Integer productId;
    
    @NotNull(message = "数量不能为空")
    @Min(value = 1, message = "数量必须大于0")
    private Integer quantity;
    
    @NotNull(message = "收货地址不能为空")
    private Integer addressId;
    
    private String remark;
} 